package com.doupi.partner.model;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * com.xletou.generator.codegen.mybatis3.IntrospectedTableMyBatisImpl@14ca88bc 
 */
public class BusinessRelation implements Serializable {
    private static final long serialVersionUID = -188886685931599456L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 商家名称
     */
    private String name;

    /**
     * 商家id
     */
    private String businessId;

    /**
     * 商家关联管理id
     */
    private Long administratorId;

    /**
     * 合伙人后台账户id
     */
    private Long partnerAdministratorId;

    /**
     * 上级合伙人后台账户id
     */
    private Long superiorPartnerAdministratorId;

    /**
     * 城市代理商后台账户id
     */
    private Long cityAdministratorId;

    /**
     * 分站后台账户id
     */
    private Long substationAdministratorId;

    /**
     * 城市
     */
    private String city;

    /**
     * 营销号
     */
    private String marketingNumber;

    /**
     * 状态 0初始 1报备 2已签约 3已缴费 4到期 98上架 99下架
     */
    private Byte status;

    /**
     * 来源 1逗皮 2逗米
     */
    private Byte source;

    /**
     * 额外数据，一般不会变
     */
    private String extraData;

    /**
     * 创建者id
     */
    private Long createAdministratorId;

    /**
     * 更新者id
     */
    private Long updateAdministratorId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Long getAdministratorId() {
        return administratorId;
    }

    public void setAdministratorId(Long administratorId) {
        this.administratorId = administratorId;
    }

    public Long getPartnerAdministratorId() {
        return partnerAdministratorId;
    }

    public void setPartnerAdministratorId(Long partnerAdministratorId) {
        this.partnerAdministratorId = partnerAdministratorId;
    }

    public Long getSuperiorPartnerAdministratorId() {
        return superiorPartnerAdministratorId;
    }

    public void setSuperiorPartnerAdministratorId(Long superiorPartnerAdministratorId) {
        this.superiorPartnerAdministratorId = superiorPartnerAdministratorId;
    }

    public Long getCityAdministratorId() {
        return cityAdministratorId;
    }

    public void setCityAdministratorId(Long cityAdministratorId) {
        this.cityAdministratorId = cityAdministratorId;
    }

    public Long getSubstationAdministratorId() {
        return substationAdministratorId;
    }

    public void setSubstationAdministratorId(Long substationAdministratorId) {
        this.substationAdministratorId = substationAdministratorId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getMarketingNumber() {
        return marketingNumber;
    }

    public void setMarketingNumber(String marketingNumber) {
        this.marketingNumber = marketingNumber;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getSource() {
        return source;
    }

    public void setSource(Byte source) {
        this.source = source;
    }

    public String getExtraData() {
        return extraData;
    }

    public void setExtraData(String extraData) {
        this.extraData = extraData;
    }

    public Long getCreateAdministratorId() {
        return createAdministratorId;
    }

    public void setCreateAdministratorId(Long createAdministratorId) {
        this.createAdministratorId = createAdministratorId;
    }

    public Long getUpdateAdministratorId() {
        return updateAdministratorId;
    }

    public void setUpdateAdministratorId(Long updateAdministratorId) {
        this.updateAdministratorId = updateAdministratorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        return EqualsBuilder.reflectionEquals(this, that);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}